const express = require("express");
const router = express.Router();
const usersController = require("../controller/users");

router
  .post("/addUser", usersController.addUser)
  .get("/getUser/:id", usersController.getUser)
  .get("/getUsers", usersController.getUsers)
  .delete("/delUser", usersController.delUser)
  .put("/editUser", usersController.editUser)
  .get("/getMenus/:id", usersController.getMenusByUserId);

module.exports = router;
